package top.itaso.app.ui.settings

import android.app.Application
import androidx.lifecycle.AndroidViewModel
import top.itaso.app.R
import top.itaso.lib.common.AppUtils

class SettingsViewModel(application: Application) : AndroidViewModel(application) {
    fun onLogout(): Boolean {
        return true
    }

    val loginUserName: String
        get() = getApplication<Application>().resources.getString(
            R.string.tip_setting_item_modify_user_info_mark,
            "itaso"
        )
    val appVersion: String
        get() = AppUtils.getAppVersionName(getApplication(), null) + "(" + AppUtils.getVersionCode(
            getApplication(),
            null
        ) + ")"

}